<?php
/*
{"http://bug.tainengmiao.com/xsocial/orkut_index.php?action=makeSig":
{"body":"{\"action\":\"makeSig\",\"opensocial_owner_id\":\"14859913123498802880\",\"opensocial_viewer_id\":\"14859913123498802880\",\"opensocial_app_id\":\"17548626959455852607\",\"opensocial_app_url\":\"http:\\/\\/bug.tainengmiao.com\\/xsocial\\/orkut_index.php\",\"xoauth_signature_publickey\":\"pub.1199819524.-1556113204990931254.cer\",\"xoauth_public_key\":\"pub.1199819524.-1556113204990931254.cer\",\"oauth_version\":\"1.0\",\"oauth_timestamp\":\"1306290274\",\"oauth_nonce\":\"1423585466915610066\",\"opensocial_container\":\"http:\\/\\/www.orkut.com\",\"oauth_consumer_key\":\"orkut.com\",\"oauth_signature_method\":\"RSA-SHA1\",\"oauth_signature\":\"gNlJbT\\/8kYMPjn1mdkWIuC9Kyz\\/Pl1QMciHoDs0dvsgUKYl\\/qblmu4EG6bwhpPx5M4N\\/8hMW+PxUgjsGWnJozGbIvhxGl2p+dkUkIzfmZMgic6BB\\/RrNKcYK2V4Zc2SbEFCvMqKRvOrO1v99tPh2bqMSlLOZyQnoB5CwkR6+wy8=\"}","DataHash":"f3eerphd1fpnmd8snbt2h7il04","rc":200}}
*/
$params = array();

$params['uid'] = $_REQUEST["opensocial_viewer_id"];
$params['sessionkey'] = time();
$params['sig'] = md5($params['sessionkey'] . $params['uid'] . $this->secretKey);

echo json_encode($params);
?>